package com.cloudpan.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author sc
 * @DATE 2024/1/27 17:40
 * @Description:
 * @Version 1.0
 */
@Data
public class SysUserMsgVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "发送者id")
    @TableField("fromId")
    private String fromId;

    @ApiModelProperty(value = "接收者id")
    @TableField("toId")
    private String toId;

    @ApiModelProperty(value = "发送的内容")
    private String textMessage;

    @ApiModelProperty(value = "创建时间(发送时间)")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0 未删除 1 删除")
    @TableLogic
    private String delFlag;

}
